package com.cl.pattern.state;

/**
 * 具体的状态
 */
public class ConcreteState2 extends State {

    @Override
    public void operation1() {
        System.out.println("ConcreteState2 的 handle1 方法");
    }

    @Override
    public void operation2() {
        super.context.setCurrentState(Context.STATE2);
        System.out.println("ConcreteState2 的 handle2 方法");
    }

}